﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IDML.BusinessObject;
using IDML.DataAccess;

namespace IDML.BusinessLogic
{
  public  class PatientBL
    {
      private PatientBO _patientBo;
      private PatientDAL _patientDal;

        public PatientBL()
        {
            _patientBo = new PatientBO();
            _patientDal = new PatientDAL();
        }

        public List<PatientBO> Patient_SearchWithText(string SearchText)
        {
            return _patientDal.Patient_SearchWithText(SearchText);
        }

        public int Patient_Register(PatientBO patientBO)
        {
            return _patientDal.Patient_Register(patientBO);
        }

        public List<PatientBO> Patient_LoadDetails(int patID)
        {
            return _patientDal.Patient_LoadDetails(patID);
        }

        public List<PatientBO> Patient_Search(PatientBO pationtBo)
        {
            return _patientDal.Patient_Search(pationtBo);
        }
    }
}
